package com.stm.bi.enums;

/**
 * @author chenyingjun
 * @ClassDesc ES指标类型枚举
 * @date 2023/02/02 9:20
 **/
public enum DimensionEnum {

    PROD_CATEGORY_SALES(7544243391464448L, "品类销额"),
    PROD_ASSORTMENT_SALES(7606129138599936L, "品种销额"),
    PROD_STYLE_SALES(7558076517387776L, "款式销额"),
    PROD_STYLE_TYPE_SALES(7558077450257408L, "款式类别销额"),
    PROD_STYLE_STRUCTURE_QTY(8500230500680192L, "款式结构销量"),
    PROD_CATEGORY_DIGESTIBILITY(8500237803586048L, "品类售罄率"),
    PROD_ASSORTMENT_DIGESTIBILITY(8500240108192256L, "品种售罄率"),
    PROD_STYLE_DIGESTIBILITY(8500240673931776L, "款式售罄率"),
    PROD_STYLE_COLOR_DIGESTIBILITY(8500243160596992L, "款色售罄率"),
    PROD_STYLE_SIZE_DIGESTIBILITY(8500243468714496L, "款码售罄率"),
    PROD_CATEGORY_RETURN_RATE(8500244168212992L, "品类退货率"),
    PROD_ASSORTMENT_RETURN_RATE(8500244510802432L, "品种退货率"),
    PROD_STYLE_RETURN_RATE(8500244868989440L, "款式退货率"),
    PROD_STYLE_COLOR_RETURN_RATE(8500245086110208L, "款色退货率"),
    PROD_STYLE_SIZE_RETURN_RATE(8500245747630592L, "款码退货率"),
    RETURN_REASON(8696160310334720L, "退货理由"),
    PROD_STYLE_THREE_SEVEN(8500246257336832L, "款式销售三七"),
    PROD_STYLE_QTY(8500246519087616L, "款式销量"),
    STYLE_TYPE(7558077450257408L, "款式类别"),

    STYLE_QTY_PROCESS(8670618958627584L,"款式日推移销量");


    /**
     * 字段类型值
     */
    private final Long dimensionId;
    /**
     * 字段类型描述
     */
    private final String desc;

    DimensionEnum(Long dimensionId, String desc) {
        this.dimensionId = dimensionId;
        this.desc = desc;
    }

    public Long getDimensionId() {
        return dimensionId;
    }

    public String getDesc() {
        return desc;
    }

    public static DimensionEnum getDimensionEnum(Long dimensionId) {
        for (DimensionEnum ut : DimensionEnum.values()) {
            if (ut.getDimensionId().equals(dimensionId)) {
                return ut;
            }
        }
        return null;
    }
}
